package com.smart.comsumer.controller;

import com.smart.comsumer.feign.ProviderFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * .............................................
 * When I wrote this, only God and I understood what I was doing
 * Now, God only knows
 * .............................................
 *
 * @ProjectName: cloud-alibaba-example
 * @Package: com.smart.comsumer.controller
 * @ClassName: Comsumer
 * @Description: 描述
 * @Author: zhangwei
 * @CreateDate: 2021/12/20 17:28
 * @UpdateUser: 更新者
 * @UpdateDate: 2021/12/20 17:28
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@RestController
public class ConsumerController {
    @Resource
    ProviderFeignService feignService;

    /**
     * HttpURLConnection
     * HttpClient  apache
     * okhttp
     *
     * @return
     */
    @GetMapping("/test")
    public String test() {
        return feignService.hello("feign");
    }
}
